
<!DOCTYPE html>
<html>
<head>
    <title>大乐透数据分析</title>
<style>

body {
    width: 600px;
    margin: 40px auto;
    font-family: 'trebuchet MS', 'Lucida sans', Arial;
    font-size: 14px;
    color: #444;
}

table {
    *border-collapse: collapse; /* IE7 and lower */
    border-spacing: 0;
    width: 100%;    
}

.bordered {
    border: solid #ccc 1px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 0 1px 1px #ccc; 
    -moz-box-shadow: 0 1px 1px #ccc; 
    box-shadow: 0 1px 1px #ccc;         
}

.bordered tr:hover {
    background: #fbf8e9;
    -o-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;     
}    
    
.bordered td, .bordered th {
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
    padding: 10px;
    text-align: left;    
}

.bordered th {
    background-color: #dce9f9;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));
    background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
    background-image:    -moz-linear-gradient(top, #ebf3fc, #dce9f9);
    background-image:     -ms-linear-gradient(top, #ebf3fc, #dce9f9);
    background-image:      -o-linear-gradient(top, #ebf3fc, #dce9f9);
    background-image:         linear-gradient(top, #ebf3fc, #dce9f9);
    -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; 
    -moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;  
    box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;        
    border-top: none;
    text-shadow: 0 1px 0 rgba(255,255,255,.5); 
}

.bordered td:first-child, .bordered th:first-child {
    border-left: none;
}

.bordered th:first-child {
    -moz-border-radius: 6px 0 0 0;
    -webkit-border-radius: 6px 0 0 0;
    border-radius: 6px 0 0 0;
}

.bordered th:last-child {
    -moz-border-radius: 0 6px 0 0;
    -webkit-border-radius: 0 6px 0 0;
    border-radius: 0 6px 0 0;
}

.bordered th:only-child{
    -moz-border-radius: 6px 6px 0 0;
    -webkit-border-radius: 6px 6px 0 0;
    border-radius: 6px 6px 0 0;
}

.bordered tr:last-child td:first-child {
    -moz-border-radius: 0 0 0 6px;
    -webkit-border-radius: 0 0 0 6px;
    border-radius: 0 0 0 6px;
}

.bordered tr:last-child td:last-child {
    -moz-border-radius: 0 0 6px 0;
    -webkit-border-radius: 0 0 6px 0;
    border-radius: 0 0 6px 0;
}

</style>
</head>

<body>
<form name="total_count" method="post" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>" >
<?php

require_once 'library/mysql.php';
require_once 'library/lib_public.php';


if($_SERVER['REQUEST_METHOD'] == 'POST'){
	$th_title_array=array("期号","龙头","第二个红球","第三个红球","第四个红球","凤尾","前区和值","第一个蓝球","第二个蓝球","后区和值");
    $sql_text="select * from forecast_comment where issue=".$_POST['show_issue_area1']." order by issue desc";
    $source_array=array();
    $source_array[]=mysql_select($sql_text,$fetch_amount="one",$fetch_type="index");
    $source_array[]=array(show_issue_area_select1(),"","","","","","","","",show_submit());
    $show_table=show_multi_index_table(10,"bordered",$th_title_array,$source_array,"multi_2_array");
    echo $show_table;
}
else{
	$sub_sql_text="select issue from forecast_comment order by issue desc";
	$mysql_table=mysql_select($sub_sql_text,$fetch_amount="one",$fetch_type="assoc");
	$th_title_array=array("期号","龙头","第二个红球","第三个红球","第四个红球","凤尾","前区和值","第一个蓝球","第二个蓝球","后区和值");
    $sql_text="select * from forecast_comment where issue=".$mysql_table['issue']." order by issue desc";
    $source_array=array();
    $source_array[]=mysql_select($sql_text,$fetch_amount="one",$fetch_type="index");
    $source_array[]=array(show_issue_area_select1(),"","","","","","","","",show_submit());
    $show_table=show_multi_index_table(10,"bordered",$th_title_array,$source_array,"multi_2_array");
    echo $show_table;	
}

?>
</form>
</body>
</html>